package com.yunlankeji.stemcells.activity.project;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.view.View;
import android.webkit.WebResourceRequest;
import android.webkit.WebView;
import android.webkit.WebViewClient;
import android.widget.LinearLayout;

import com.yunlankeji.ganxibaozhijia.R;

import butterknife.OnClick;

public class Project_detailsActivity extends AppCompatActivity {

    private WebView wb_project_detail;
    LinearLayout lt_project_detail_return,lt_project_detail_share;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_project_details);
        wb_project_detail = findViewById(R.id.wb_project_detail);
        wb_project_detail.setWebViewClient(new WebViewClient(){
            @Override
            public boolean shouldOverrideUrlLoading(WebView view, String url) {

                view.loadUrl(url);
                return  true;
            }
        });

        wb_project_detail.loadUrl("www.baidu.com");
        lt_project_detail_return = findViewById(R.id.project_detail_return_lt);
        lt_project_detail_share = findViewById(R.id.project_detail_share_lt);


    }
    @OnClick({R.id.project_detail_return_lt,R.id.project_detail_share_lt})

    public void onClick (View view){
       switch (view.getId()){

           case R.id.project_detail_return_lt:
               finish();
               break;
       }
    }
}